package com.feeling.xiu.ui

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.feeling.xiu.R
import kotlinx.android.synthetic.main.activity_splash.*
import org.jetbrains.anko.startActivity

class SplashActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_splash)
        initView()
    }

    private fun initView() {

        tv_login.setOnClickListener(View.OnClickListener {
            startActivity<LoginActivity>()
            finish()
        })
        tv_register.setOnClickListener(View.OnClickListener {
            startActivity<RegisterActivity>()
            finish()
        })


    }
}
